package io.renren.modules.testdemo.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.testdemo.dao.B87PowerDao;
import io.renren.modules.testdemo.entity.B87PowerEntity;
import io.renren.modules.testdemo.service.B87PowerService;


@Service("b87PowerService")
public class B87PowerServiceImpl extends ServiceImpl<B87PowerDao, B87PowerEntity> implements B87PowerService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        String createby=params.get("createby").toString();
        IPage<B87PowerEntity> page = this.page(
                new Query<B87PowerEntity>().getPage(params),
                new QueryWrapper<B87PowerEntity>().eq("creatby",createby)
        );

        return new PageUtils(page);
    }

}
